package view.transitions;

import java.awt.image.BufferedImage;

public class SlideFromBottom extends Animator {

	public SlideFromBottom(BufferedImage from, BufferedImage to) {
		super(from, to);
	}

	@Override
	public void animate() {
		this.currentFrame++;
		this.overlayPosition.y = this.overlay.getHeight() - this.overlay.getHeight() * this.currentFrame
				/ Animator.MAX_FRAMES;

	}

}
